/*
 * @(#)JdbcTemplate.java 1.0 2000/12/28
 * 
 * Copyright 2000 Thomas Barnekow. All Rights Reserved.
 * 
 * This software is the proprietary information of Thomas Barnekow. Use is
 * subject to license terms.
 */

package jessx.provider.jdbc;

import jess.*;

import tb.provider.*;
import tb.provider.jdbc.*;
import tb.util.*;
import jessx.provider.*;

/**
 * A {@link Template} corresponding to a {@link Table}.
 * 
 * @author Thomas Barnekow
 * @version 1.0
 */
public class JdbcTemplate extends Template {

	private Table m_table;

	public JdbcTemplate(Table table, Rete engine) {
		this(table, null, engine);
	}

	public JdbcTemplate(
		Table table,
		CompoundMetaObject container,
		Rete engine) {
		super(
			QualifiedName.copy(table.getQualifiedName(), DELIMITER),
			container,
			engine);

		m_table = table;
		setComment(table.getRemarks());
	}

	public Table getTable() {
		return m_table;
	}
}